var WebpackIconfontPluginNodejs = require("webpack-iconfont-plugin-nodejs");
var path = require("path");
var options = {
    fontName: 'my-icons',
    cssPrefix: 'ico',
    svgs: path.resolve(__dirname, './src/static/svgs/*.svg'),
    fontsOutput: path.resolve(__dirname, './src/static/fonts'),
    cssOutput: path.resolve(__dirname, './src/static/fonts/iconfont.css'),
    htmlOutput: path.resolve(__dirname, './src/static/fonts/_font-preview.html'),
    jsOutput: path.resolve(__dirname, './src/static/fonts/font.js'),
    formats: ['ttf', 'woff', 'svg'],
};

new WebpackIconfontPluginNodejs(options).build();
